package com.gewu.pm.ui.activity.filter;

import android.content.Context;
import android.content.Intent;

import com.gewu.pm.ui.activity.filter.base.BaseFilterActivity;
import com.gewu.pm.ui.activity.filter.config.FilterConfig;

/**
 * 筛选-我的申请
 */
public final class FilterMyApplicationActivity extends BaseFilterActivity {
    
    public static void start(Context context) {
        Intent intent = new Intent(context, FilterMyApplicationActivity.class);
        context.startActivity(intent);
    }
    
    @Override
    protected FilterConfig getFilterConfig() {
        return new FilterConfig.Builder()
                // 提交时间
                .addTimeSelector("submit_time", "提交时间", 3)
                // 开始时间-结束时间
                .addDateRangeSelector("date_range", "日期范围")
                // 申请状态
                .addTagSelector("application_status", "申请状态", 3,
                        "全部", "审批中", "已通过", "已驳回", "已撤销")
                .build();
    }
}
